<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>分支语句</title>

    <script>
        var a = "23"
        switch (a) {
            case "22":{
                console.log("=22")
                break
            }
            case "21":{
                console.log("=21")
                break
            }
            default:{
                console.log("defualt.....")
            }

        }

    </script>


</head>
<body>

</body>
</html>